<script>
var $=null,table=null,tableId='ID_role_table';
layui.use(['jquery', 'table'], function(){
	$=layui.jquery, table = layui.table;
});

### 获取选中数据，拼装成ID表字串
function getCheckData(){
	var data = table.checkStatus(tableId).data;
	
	var ids="";
	for(var i = 0; i < data.length; i++){
		if(i > 0) ids += ",";
		ids += data[i].id;
	}
	$("#ID_role_ids").val(ids);
}

</script>